Skip to content

Add a self-contained offline planner demo for presentations - #54

Draft
aikhanjum wants to merge 1 commit into
feat/semester-plannerfrom
feat/semester-demo
Draft

aikhanjum wants to merge 1 commit into
feat/semester-plannerfrom
feat/semester-demo

Conversation

@aikhanjum

Copy link
Copy Markdown
Collaborator

A planner presentation or UI review currently requires a running app and a connected account. This adds a separate sample-data entry that exercises the actual Semester Lab component, worker, and WebAssembly solver, plus a one-command export to a standalone HTML file.

Run npm run demo:planner for local development or npm run pack:planner-demo to create .artifacts/semester-lab.html. The export embeds React, styles, fonts, worker code, and Wasm. It can be opened directly from disk with networking disabled. Generated output remains ignored.

The demo visibly labels its section times as synthetic. It includes a normal semester and a three-course/two-slot example where every pair fits but the whole schedule is impossible. The README gives a short presentation sequence and documents browser requirements. Production authentication is unchanged.

Stacked on #53, which depends on #52. Merge order is #52, #53, then this PR.

Validation executed locally.

  • npm test passed all 60 tests.
  • npm run typecheck, npm run build, npm run pack:planner-demo, and git diff --check passed.
  • The generated HTML was 250,906 bytes.
  • Automated Chromium checks passed against both the Vite entry and the exported file. They exercised pinning, Friday off, earliest start, undo, section locking, impossible constraints, and a verified relaxation.
  • The exported file passed with browser networking disabled and zero HTTP requests. Both runs had no page errors or document overflow at a 390 px viewport.

Safari, Firefox, older browser versions, real Junction account data, and production deployment have not been verified. The sample timetable does not claim registration eligibility or seat availability.

Implemented with Codex assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant